<?php 
session_start();

if (isset($_SESSION[$_REQUEST["ajax_parameter"]])) echo $_SESSION[$_REQUEST["ajax_parameter"]];
else echo 0;

?>